﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Utilities.Common;
using DataBaseManager;

namespace BLGPS
{
    public class Chofer
    {
        [IsId]
        public decimal Id { get; set; }
        public string Nombre { get; set; }
        public string NroDocumento { get; set; }

        public override string ToString()
        {
            return Nombre;
        }

        public void Guardar(Empresa Empresa)
        {
            ParameterManager parameters = new ParameterManager() { new Parameter("idEmpresa", Empresa.Id) };
            BaseDatos.DB.Save(this, parameters);
        }
    }
}
